//
//  DetailNewViewController.h
//  yunqiphone
//
//  Created by Maple on 14-3-7.
//  Copyright (c) 2014年 ci123.com. All rights reserved.
//

#import "RCLabel.h"
#import "MWPhotoBrowser.h"
#import "ReplyTableView.h"
#import "ReplyCell.h"
#import "UserInfo.h"
#import "IndicatorView.h"
#import "BaseViewController.h"

@interface DetailNewViewController : BaseViewController<
    MWPhotoBrowserDelegate,
    TableViewEGORefresh,
    UITextViewDelegate,
    UIActionSheetDelegate,
    UIImagePickerControllerDelegate,
    UINavigationControllerDelegate,
    UIScrollViewDelegate,
    IndicatorDelegate
>{
    NSMutableArray *_replyData;
    NSMutableArray *_goUrldata; //回复数据
    
    NSArray *_picArray;
    NSMutableArray *_videoArray;
    MWPhotoBrowser *_browser;

    UIImageView *_headImage;
    
    int _replyHeight;
    int _height_total;

    UIView *_replyView; //回复框
    UIView *_replyContentView;
    UIView *_emotionView;
    UIScrollView *_emotionScrollView;
    UIPageControl *_emotionPageControl;
    UITextView *_textView;
    UITextField *_textFiled;
    UILabel *_replyName;
    UIButton *_cancelButton;
    UIButton *_postReply;
    UIButton *_emotionButton;
    NSMutableDictionary *_textFaceDic;

    NSString *_replyId;
    NSString *_replyFloor;
    UIButton *_replyPicBtb;
    UIImageView *_replyImage;
    UIImage *_uploadImage;

    UIView *quickReplyWrap;
    UILabel *deleteLabel;
    
    NSInteger currentTag;
    BOOL _replySucc;
}

@property (nonatomic,retain)ReplyTableView *tableView;
@property (nonatomic,retain)UIScrollView *scrollView;
@property (nonatomic,retain)UIView  *contentView;    //帖子内容
@property (nonatomic,retain)UIView  *headView;       //帖子标题，楼主信息
@property (nonatomic,retain)UIView  *actionView;   //快速回复、管理员、回复数
@property (nonatomic,retain)UIButton *tmpReplayButton;
@property (nonatomic,assign)NSInteger replyTag;
@property (nonatomic,retain)UILabel *noReplyTip;

@property (nonatomic,retain)NSMutableArray *picArr;     //帖子图片列表
@property (nonatomic,retain)NSMutableArray *data; //回复数据
@property (nonatomic,retain)NSDictionary *contentData;
@property (nonatomic,assign)NSInteger page;

@property (nonatomic,assign)BOOL isQuoteReply;

@property (nonatomic,copy)NSString *pid;
@property (nonatomic,copy)NSString *msgId;
@property (nonatomic,copy)NSString *msgNum;           //消息相关条数
@property (nonatomic,copy)NSString *stationInnerId;   //站内信id
@property (nonatomic,assign)BOOL isPost;
@property (nonatomic,retain)NSDictionary *postData;

@property (nonatomic,retain)UIWebView *webView;
@property (nonatomic,copy)NSString *baseURLString;        //可以不传 默认地址：BBSPostReplyListURLString
@property (nonatomic,retain)UserInfo *HomeUserInfo;
@property (nonatomic,assign)NSInteger order;
@property (nonatomic,assign)BOOL isCollect;
@property (nonatomic,assign)BOOL isLoadingMore;
@property (nonatomic,assign)BOOL isFromBeauty;
@property (nonatomic,assign)BOOL isFromPush;
@property (nonatomic,assign)NSInteger replyButtonClickType;//0:取消按钮或没有点按钮 1:表情、相机

@property (nonatomic,retain)IndicatorView *indicatorView;

//block
@property (nonatomic,copy)void (^blockGetPostDetailSuccess)(NSDictionary *response);
@property (nonatomic,copy)void (^blockChangeReplyListSuccess)(NSDictionary *response);
@property (nonatomic,copy)void (^blockLoadMoreSuccess)(NSDictionary *response);
@property (nonatomic,copy)void (^blockCollectPostSuccess)(NSDictionary *response);
@property (nonatomic,copy)void (^blockPubReplySuccess)(NSDictionary *response);
@property (nonatomic,copy)void (^blockDeletePostSuccess)(NSDictionary *response);
@property (nonatomic,copy)void (^blockQuickReplySuccess)(NSDictionary *response);

@end
